package com.spshiro.mapper;

import com.spshiro.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @create 2022-03-2022/3/17-10:05
 */
@Mapper
@Repository
public interface UserMapper {

    @Select("select name,password,role from login_user where name=#{name}")
    public  User getAccount(String name);
}
